﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin : System.Web.UI.MasterPage
{
    public String mainCategory = "-";
    
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Session["userId"] == null || Session["userId"].Equals("")||

            !((String)Session["userId"]).StartsWith("120"))
        {

            this.Response.Redirect("~/home.aspx?role=admin&returnUrl=" + this.Request.Url);
        }

        switch (mainCategory)
        {
            case "ACCOUTNS":
                Menu_HyperLink_OpenAccount.CssClass = "current";
            break;
            case "DEPOSIT":
            Menu_HyperLink_Deposit.CssClass = "current";
            break;
            case "REWARDS":
            Menu_HyperLink_Rewards.CssClass = "current";
            break;
            
            case "CLAIMS":
            Menu_HyperLink_Claims.CssClass = "current";
            break;
            case "HISTORY":
            Menu_HyperLink_History.CssClass = "current";
            break;
        }

    }



}
